package model

import messageID "broker/struct/common/message_id"

/**
 * @Description
 * @Author huan.wang
 * @Date 2021/4/27 12:21 上午
 **/

type SubscribeAckMessage struct {
	*BaseMessage
	PacketID   uint16
	ReturnCode byte
}

func NewSubAckMessage() *SubscribeAckMessage {
	return &SubscribeAckMessage{
		NewMsgIDBaseMessage(messageID.SubAck),
		0,
		0,
	}
}
